package smart.src;

import java.sql.Connection;

import org.openswing.swing.mdi.client.ClientFacade;

import com.j256.ormlite.support.ConnectionSource;

public class OfficeClientFacade implements ClientFacade {

	private ConnectionSource connectionSource = null;
	private CardGridFrameController cardGridFrameController;
	private CardStatusGridFrameController cardStatusFrameController;
	private CardModeGridFrameController cardModeFrameController;
	private CardStateGridFrameController cardStateFrameController;
	private ClientDetailFrameController clientDetailFrameController;

	public OfficeClientFacade(ConnectionSource connectionSource) {
		this.connectionSource = connectionSource;
	}

	public void getCards() {
		cardGridFrameController = new CardGridFrameController( connectionSource );
	}
	
	public void getCardStatus() {
		cardStatusFrameController = new CardStatusGridFrameController(connectionSource);
	}
	
	public void getCardMode() {
		cardModeFrameController = new CardModeGridFrameController(connectionSource);
	}
	
	public void getCardState() {
		cardStateFrameController = new CardStateGridFrameController(connectionSource);
	}
	
	public void setNewClient() {
		clientDetailFrameController = new ClientDetailFrameController(connectionSource);
	}
}
